import Vue from 'vue'
import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'
import './permission.js'
import '@/directive/index.js'
import AuthButton from '@/components/PermissionBtn/index.vue'
// 注册svg
import '@/icons'
import { Mutex } from 'async-mutex'
Vue.prototype.$lock = new Mutex()

Vue.use(ElementUI)
Vue.component('AuthButton', AuthButton)

Vue.config.productionTip = false

// vue实例化
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
